package com.hjb.springbootdemo.sigle;

//内部类实现单例
public class Signleton4 {

    private Signleton4() {
    }

    public static class SignletonHandler {
        private static Signleton4 signleton4 = new Signleton4();
    }

    public static Signleton4 getInstance() {
        return SignletonHandler.signleton4;
    }
}
